<?php
	require_once('../webroot/js/clsMsDocGenerator.php');
	$doc = new clsMsDocGenerator();
	
	$doc->setFontFamily('Arial');
	$doc->setFontSize('11');
	$doc->addParagraph('Ruta El Buen Trato',array('font-weight' => 'bold', 'text-align'=>'center', 'font-size' => '14pt'));	
	$doc->addParagraph('');
	
	if(!empty($informe)){
			$doc->addParagraph('Municipio:'.$informe['Municipio']['nombre'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('Mes-A&ntilde;o: '.$informe['Informemensuale']['mes_ano'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph('');	
			
			$doc->addParagraph('a. Logros: ',array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));		
			$doc->addParagraph($informe['Informemensuale']['logros'],array('font-weight' => 'normal', 'text-align'=>'justify','margin-left'=>'30pt'));
			$doc->addParagraph('');	
			
			$doc->addParagraph('b. Dificultades   '.$informe['Informemensuale']['dificultades'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($informe['Informemensuale']['dificultades'],array('font-weight' => 'normal', 'text-align'=>'justify','margin-left'=>'30pt'));
			$doc->addParagraph('');	
			
			$doc->addParagraph('c. Proyecciones:  '.$informe['Informemensuale']['proyecciones'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($informe['Informemensuale']['proyecciones'],array('font-weight' => 'normal', 'text-align'=>'justify','margin-left'=>'30pt'));
			$doc->addParagraph('');	
			
			$doc->addParagraph('d. Seguimientos:  '.$informe['Informemensuale']['seguimientos'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($informe['Informemensuale']['seguimientos'],array('font-weight' => 'normal', 'text-align'=>'justify','margin-left'=>'30pt'));
			$doc->addParagraph('');	
			
			$doc->addParagraph('e. Observaciones: '.$informe['Informemensuale']['observaciones'],array('font-weight' => 'bold', 'text-align'=>'justify','margin-left'=>'15pt'));
			$doc->addParagraph($informe['Informemensuale']['observaciones'],array('font-weight' => 'normal', 'text-align'=>'justify','margin-left'=>'30pt'));
			$doc->addParagraph('');	
			
			$doc->addParagraph('');	
		}
		else {
		$doc->addParagraph('');
		$doc->addParagraph('No hay Informe Mensual para Este Municpio');	
	 }
	$doc->output('Informe Mensual');
?>